package project02.domain;

import java.io.Serializable;

public class Job implements Serializable {
    private Integer jid;//营业执照编号
    private String companyName;//所属公司
    private String jobName;//兼职名称
    private String jobTypeName;//兼职类型
    private Integer jobLevel;//兼职等级
    private String jobContent;//兼职内容
    private Integer jobDemand;//兼职需求人数
    private Integer jobTime;//工作时间
    private Integer salary;//兼职薪水

    private Integer status=0;//工作状态（1为进行中，0为未开始,-1已完成）


    public Job(Integer jid, String companyName, String jobName, String jobTypeName, Integer jobLevel, String jobContent, Integer jobDemand, Integer jobTime,
               Integer salary,Integer status) {
        this.jid = jid;
        this.companyName = companyName;
        this.jobName = jobName;
        this.jobTypeName = jobTypeName;
        this.jobLevel = jobLevel;
        this.jobContent = jobContent;
        this.jobDemand = jobDemand;
        this.jobTime = jobTime;
        this.salary = salary;


        this.status = status;

    }

    public Job() {

    }

    public Integer getJid() {
        return jid;
    }

    public void setJid(Integer jid) {
        this.jid = jid;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getJobTypeName() {
        return jobTypeName;
    }

    public void setJobTypeName(String jobTypeName) {
        this.jobTypeName = jobTypeName;
    }

    public Integer getJobLevel() {
        return jobLevel;
    }

    public void setJobLevel(Integer jobLevel) {
        this.jobLevel = jobLevel;
    }

    public String getJobContent() {
        return jobContent;
    }

    public void setJobContent(String jobContent) {
        this.jobContent = jobContent;
    }

    public Integer getJobDemand() {
        return jobDemand;
    }

    public void setJobDemand(Integer jobDemand) {
        this.jobDemand = jobDemand;
    }

    public Integer getJobTime() {
        return jobTime;
    }

    public void setJobTime(Integer jobTime) {
        this.jobTime = jobTime;
    }

    public Integer getSalary() {
        return salary;
    }

    public void setSalary(Integer salary) {
        this.salary = salary;
    }


    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Job{" +
                "jid=" + jid +
                ", companyName='" + companyName + '\'' +
                ", jobName='" + jobName + '\'' +
                ", jobTypeName='" + jobTypeName + '\'' +
                ", jobLevel=" + jobLevel +
                ", jobContent='" + jobContent + '\'' +
                ", jobDemand=" + jobDemand +
                ", jobTime=" + jobTime +
                ", salary=" + salary +
                ", status=" + status +
                '}';
    }
}
